package cate.game.event.hero;

import cate.game.activity.specall.SpeCallActivity;
import cate.game.event.GameEventListener;

public class HeroCallOrCompositeListener implements GameEventListener<HeroCallOrCompositeEvent> {
    @Override
    public void onEvent(HeroCallOrCompositeEvent gameEvent) {
        gameEvent.role.getActivity().getEnableList(SpeCallActivity.class).forEach(a->a.warOrderAddNum(gameEvent.heroTid, gameEvent.num));
        gameEvent.role.getHistory().action.heroHasTidNum(gameEvent.heroTid, gameEvent.num);
    }
}
